package com.study.demo.aop.demo3;

import org.springframework.cache.CacheManager;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cache.concurrent.ConcurrentMapCacheManager;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author: elvin
 * @time: 2019-08-09 13:25
 * @desc:
 **/
@Configuration
@EnableCaching
public class Config {

    @Bean
    public CacheManager cacheManager(){
        return new ConcurrentMapCacheManager();
    }

    @Bean
    public IUserService iUserService(){
        return new UserService();
    }
}
